package cn._51doit.flink.day05;

public class WindowBoundTest {
    public static void main(String[] args) {

        //窗口长度是5000毫秒（5秒）
        long time = 1645252201000L;

        long startTime = time - time % 5000;
        System.out.println(startTime);

        long endTime = startTime + 5000;
        System.out.println(endTime);

        //老的API窗口是前闭后开的
        //[1645252200000, 1645252205000)
        //[1645252200000, 1645252204999]

    }
}
